using System;

namespace Mbs.Modularity
{
    [Serializable]
    public class ModuleEventArgs : EventArgs
    {
        public IModule Module { get; private set; }
        public Exception  Exception { get; private set; }

        public ModuleEventArgs(IModule module)
        {
            this.Module = module;
        }

        public ModuleEventArgs(IModule module, Exception exception)
        {
            this.Module = module;
            this.Exception = exception;
        }
    }
}
